<template>
  <div class="blog">
    <Header></Header>
    <div class="content">
      <VueMarkdown class="vd" :source="acticleList[2] ? acticleList[2].content : ''"></VueMarkdown>
      <TitleCard v-for="(item,index) in acticleList" :key="index" :acticle="item"></TitleCard>
    </div>
    <Footer></Footer>
  </div>
</template>
<script>
import { mapActions, mapGetters } from 'vuex'

import Header from '../../components/header'
import Footer from '../../components/footer'
import TitleCard from '../../components/titleCard'
import VueMarkdown from 'vue-markdown'
export default {
  scrollToTop: true,
  transition: "fade",
  data () {
    return {
      list: new Array(10).fill(10)
    }
  },
  computed: {
    ...mapGetters(['acticleList']),
  },
  methods: {
    ...mapActions(['Acticle_LIST_ACTION'])
  },
  mounted () {
    this.Acticle_LIST_ACTION()
  },
  components: {
    Header,
    Footer,
    TitleCard,
    VueMarkdown
  }
};
</script>


<style lang="scss" scoped>
.blog {
  box-sizing: border-box;
  padding: 3.4rem 0 2rem;
  .content{
    width: 960px;
    height: 100%;
    margin: 0 auto;
  }
}
</style>